package cn.com.cifi.mars.mapper.mars;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.com.cifi.mars.bean.dto.FunctionalPermissionDto;
import cn.com.cifi.mars.bean.dto.SysPermissionDto;
import cn.com.cifi.mars.entity.common.SysPermission;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2019-09-18
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

	int updateSysPermissionByPerCode(@Param("isVaild")String isVaild,@Param("perCode")String perCode);
	
	List<SysPermissionDto>selectSysPermissionTree(@Param("perName")String perName,@Param("itsApplicationCode")String itsApplicationCode);
	
	int selectByPerCode(@Param("perCode")String perCode);
	
	List<FunctionalPermissionDto>selectByRoleIds(@Param("roleIds")List<String> roleIds);
	
	List<FunctionalPermissionDto>selectByPositionGroupId(@Param("positionGroupIds")List<String> positionGroupIds);
	
}
